package com.web3.management.dto.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 全局配置创建/更新请求
 */
@Data
public class ConfigRequest {

    @NotBlank(message = "配置名称不能为空")
    @Size(max = 100, message = "配置名称不能超过100个字符")
    private String name;

    @Size(max = 255, message = "文件路径不能超过255个字符")
    private String filePath;

    @NotBlank(message = "配置内容不能为空")
    private String configContent;

    @Size(max = 500, message = "变更摘要不能超过500个字符")
    private String changeSummary;
}
